#include "stonewt.h"
#include <iostream>
using namespace std;
Stonewt::Stonewt()
{
    stone = 0;
    pondes = 0.0;
    pds_left = 0.0;
}
Stonewt::Stonewt(double pds) 
{
  pondes = pds;
  stone = int (pds) / Lbs_per_stone;
  pds_left = int (pds) % Lbs_per_stone + pds - (int)pds;
}
Stonewt::Stonewt(int st, double lpds)
{
    stone = st;
    pds_left = lpds;
    pondes = st * Lbs_per_stone + lpds;
}

void Stonewt::show_lbs() const
{
    cout << pondes << " pounds" << endl;
}

void Stonewt::show_stone() const 
{
    cout << stone << " stone, " << pds_left << " pounds" << endl;
}
Stonewt::~Stonewt() {
    cout << "Stonewt is destroyed" << "\n"; 
}

Stonewt::operator int() 
{
    return stone;
}
